<include file="public:header"/>
<form id="form1" name="form1" method="post" action="{:U('delete')}">
    <div class="list_th">
        <div class="td" style=" width:55%;">
            <label id="chkAll" class="left_padding">
                <input type="checkbox" name="chkAll" id="chk" title="全选/反选"/>顾问姓名
            </label>
        </div>
        <div class="td" style=" width:30%;">顾问QQ</div>
        <div class="td" style=" width:15%;">操作</div>
        <div class="clear"></div>
    </div>

    <volist name="list" id="vo">
        <div class="list_tr link_black">
            <div class="td" style=" width:55%;">
                <div class="left_padding striking">
                    <input name="id[]" type="checkbox" id="id" value="{$vo['id']}"/>{$vo.name}
                </div>
            </div>
            <div class="td" style=" width:30%;">{$vo.qq}</div>
            <div class="td edit" style=" width:13%;">
                <a href="{:U('manage',array('id'=>$vo['id']))}">关联企业</a>
                <a href="{:U('edit',array('id'=>$vo['id']))}">修改</a>
                <a href="{:U('delete',array('id'=>$vo['id']))}" onClick="return confirm('你确定要删除吗？')" class="gray">删除</a>
            </div>
            <div class="clear"></div>
        </div>
    </volist>
</form>

<empty name="list">
    <div class="list_empty">没有任何信息！</div>
</empty>

<div class="list_foot">
    <div class="btnbox">
        <input type="button" class="admin_submit" id="ButAdd" value="添加顾问" onclick="javascript:window.location.href='{:U('add')}'"/>
        <!--<input type="button" class="admin_submit" id="ButDel" value="删除"/>-->
    </div>

    <div class="footso"></div>
</div>
<div class="pages">{$page}</div>

</div>
<include file="public:footer"/>

</body>
<script type="text/javascript">
    $(document).ready(function () {
        //点击批量删除
        $("#ButDel").click(function () {
            var data = $("form[name=form1]").serialize();
            if(data.length == 0){
                disapperTooltip('remind','请选择会员！');
            } else {
                if (confirm('你确定要删除吗？')) {
                    $("form[name=form1]").submit();
                }
            }
        });
    });
</script>
</html>